package com.syq;

public class Factorial {
    public static int fact(int  r){
        int n=1;
        for (int i = 1; i <=r; i++) {
            n*=i;
        }
        return n;
    }

    public static long fact(Long  r){
        long n=1;
        for (int i = 1; i <=r; i++) {
            n*=i;
        }
        return n;
    }

}
